<script charset="utf-8"
        src="https://map.qq.com/api/gljs?libraries=tools&v=1.exp&key={$tcconfig.tencentkey}"></script>
<style type="text/css">
    #container {
        width: 100%;
        height: 80%;
        position: relative;
    }
</style>

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="form-group"
         {if condition="$isshow eq 2" }
         style="display: none"
         {else
    /}
    {/if}
    >
    <label class="control-label col-xs-12 col-sm-2">{:__('Areamanage_id')}:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-areamanage_id" data-source="tcfence/areamanage/index"
               class="form-control selectpage" name="row[areamanage_id]" type="text" value="">
    </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
            <a data-url="tcfence/fence/map" href="javascript:;" class="btn spec_add_btn btn-danger"
               data-title="地图围栏" style="margin-top: 10px">选择围栏
            </a>
        </div>
    </div>
    
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-datas" class="form-control" name="row[datas]"  type="text">
        </div>
    </div>
    
    
    
    <div class="form-group" id="container_f" style="width:100%;height:800px;margin:0 auto;" >
        <div id='container'></div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
